package com.example.datastructure.linkedlist;

import com.sun.istack.internal.NotNull;
import org.w3c.dom.Node;

public class Linked<T> {
    private class Node{
        private T t;
        private Node next;

        public Node(T t, Node next) {
            this.t = t;
            this.next = next;
        }

        public Node(T t) {
            this.t = t;
        }
    }

    private Node head;
    private int size;

    public Linked(@NotNull Integer size) {
        this.head=null;
        this.size=0;
    }

    public Linked() {
        this.head=null;
        this.size=0;
    }
}
